package com.gome.axwl.aoc.facade;

import java.util.List;

import com.anxl.sso.client.api.Account;
import com.gome.axwl.aoc.entity.dto.AmAuditSettingDto;
import com.gome.commons.core.ResultData;

/**
 * 默认权限配置
 *
 * @author John Li
 * @date 2018年7月16日10:14:28
 * @copyright(c) gome inc Gome Co.,LTD
 */
public interface AuditSettingFacade {

    /**
     * 新增审核配置
     * @param amAuditSettingDto
     * @return
     */
    ResultData addAuditSetting(AmAuditSettingDto amAuditSettingDto);

    /**
     * 删除审核配置
     * @param defaultId
     * @return
     */
    ResultData deleteAuditSetting(int defaultId);

    /**
     * 修改默认配置
     * @param amAuditSettingDto
     * @return
     */
    ResultData updateAuditSetting(AmAuditSettingDto amAuditSettingDto);

    /**
     * 查询列表
     * @param amAuditSettingDto
     * @return
     */
    ResultData getAuditSettingList(AmAuditSettingDto amAuditSettingDto);

    /**
     * 是否有审核权限
     * @param accountNo
     * @return
     */
    Boolean isUserHasAuditPrivilege(String accountNo);

    /**
     * 审核人过滤
     * @param keyword
     * @return
     */
    ResultData filterAuditUserList(String keyword);

    List<Account> queryAccountByKeyword(String keyword);

}
